﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="danh-muc-edit.ascx.cs" Inherits="Admin_UserControl_danh_muc_edit" %>
<script src="/ckeditor/ckeditor.js"></script>
<script src="/ckeditor/adapters/jquery.js"></script>
<script src="/Scripts/JCommonForm.js"></script>
<script type="text/javascript">
    $(document).ready(function () {
        //$('textarea.txtDauTu').ckeditor(function () {
        //    //config.toolbar = 'Basic';
        //    CKEDITOR.replace(this, {
        //        toolbar : 'Basic'
        //    });
        //});
    });
</script>
<h1 class="titlePage"><span style="padding: 5px 5px 5px 35px; display: inline-block;">Edit danh mục
</span></h1>
<div class="form" style="padding: 10px; width: 98%;">
    <div class="left" style="width: 225px; margin-right: 10px;">
        <div class="form-row">
            <b>Chuyên Mục chính:</b> * (Lựa chọn)
        </div>
        <div class="form-row">
            <asp:DropDownList ID="ddlChuyenMuc" Width="206px" runat="server" AppendDataBoundItems="true" CssClass="ddlChuyenMuc">
                <asp:ListItem Value="">== Kiểu chuyên mục ==</asp:ListItem>
                <asp:ListItem Value="0">== Chuyên Mục Chính ==</asp:ListItem>
            </asp:DropDownList>
        </div>
    </div>

    <div class="left" style="width: 560px; margin-right: 10px;">
        <div class="form-row">
            <b>Màu:</b> *
        </div>
        <div class="form-row">
            <asp:TextBox ID="txtColor" runat="server" Width="282" MaxLength="10"></asp:TextBox>
        </div>
    </div>
    <div style="width: 585px; float: left;">
        <div class="form-row">
            <b>Tiêu đề:</b> * (Nhập tiêu đề tin)
        </div>
        <div class="form-row">
            <asp:TextBox ID="txtTieuDe" runat="server" Width="520px" MaxLength="100" CssClass="txtTieuDe"></asp:TextBox>
        </div>
        <div class="form-row">
            <b>Mô tả:</b> * (Nhập mô tả danh mục)
        </div>
        <div class="form-row">
            <asp:TextBox ID="txtMoTa" TextMode="MultiLine" runat="server" Width="520px" MaxLength="250" CssClass="txtMoTa" Height="82px"></asp:TextBox>
        </div>
    </div>
    <div class="left" style="width: 275px; margin-bottom: 15px;">
        <div class="form-row">
            <b>Ảnh Danh Mục:</b> *
        </div>
        <div class="form-row">
            <asp:FileUpload ID="fulAnhDanhMuc" runat="server" />
            <input id="hdAnhDanhMuc" type="hidden" runat="server" />
        </div>
    </div>
    <div class="left" style="width: 275px;">
        <div class="form-row">
            <b>Logo:</b> *
        </div>
        <div class="form-row">
            <asp:FileUpload ID="fulLogo" runat="server" />
            <input id="hdLogo" type="hidden" runat="server" />
        </div>
    </div>
    <div class="form-row">
        <b>Mô nội dung:</b> * (Nhập nội dung)
    </div>
    <div class="form-row">
        <asp:TextBox ID="txtNoiDung" TextMode="MultiLine" runat="server" Width="520px" MaxLength="250" CssClass="txtNoiDung ckeditor"></asp:TextBox>
    </div>
    <div class="form-row">
        <b>Lựa chọn hiển thị:</b>
    </div>
    <div class="form-row">
        <asp:RadioButton ID="rbtShow" runat="server" GroupName="cbDisplay" Text="Hiển thị ngay" Checked="true" />
        <asp:RadioButton ID="rbtHide" runat="server" GroupName="cbDisplay" Text="Lưu trữ" />
    </div>
    <!-- Button -->
    <div class="form-row">
        <asp:Button ID="btnSubmit" runat="server" CssClass="w8-button l-blue gmap" Text="Đăng tin" OnClick="btnSubmit_Click" />
    </div>
    <div class="clr"></div>
    <input id="hdPrentID" type="hidden" runat="server" />
</div>
